package com.ssm.entity.system;

import java.util.Date;
import java.util.List;

import com.ssm.entity.Base;

public class Privilege extends Base {

	/**
	 * 权限编号
	 */
	private String id;
	
	/**
	 * 权限名称
	 */
	private String name;
	
	/**
	 * 父权限
	 */
	private String parentId;
	
	/**
	 * 权限等级
	 */
	private Integer level;
	
	/**
	 * 路径
	 */
	private String url;
	
	/**
	 * 排序
	 */
	private Integer sorts;
	
	/**
	 * 描述
	 */
	private String describes;
	
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 子菜单、子权限
	 */
	private List<Privilege> child;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getSorts() {
		return sorts;
	}

	public void setSorts(Integer sorts) {
		this.sorts = sorts;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public List<Privilege> getChild() {
		return child;
	}

	public void setChild(List<Privilege> child) {
		this.child = child;
	}

	@Override
	public String toString() {
		return "Privilege [id=" + id + ", name=" + name + ", parentId=" + parentId + ", level=" + level + ", url="
				+ url + ", sorts=" + sorts + ", describes=" + describes + ", createTime=" + createTime + ", child="
				+ child + "]";
	}
}
